package com.twl.app.base.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true,dynamicUpdate = true)
@Table(name = "Leavebmoney")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_LEAVEBMONEY_DID", allocationSize = 1)

public class Leavebmoney implements Serializable{

	/**
	 * 请假扣款
	 */
	private static final long serialVersionUID = 1L;

	private Integer did ;		//主键
	private String staffint ;  //员工ID
	private String stafftype ;	//员工类型（正式、派遣员工）
	private String stafftypes ;//员工类别（客服、授权、催收）
	private Integer outforworkint ;//月应出勤日
	private String staffmoney ;//员工基本工资
	private Double leavebint ; //请假工作天数(旷工)
	private Double leavebsick ;//请假工作天数(病假)
	private Double leavebthing ;//请假工作天数(事假)
	private Double moneyscale ; //本人工资比例（需要根据入职时间计算工作年限，获得这个比例）
	private String amountdou ;//旷工金额（计算得来）
	private String amountsick ; //病假扣款 (计算)
	private String amountthing ;//事假扣款 (计算)
	private String datemoney ;//日期
	private String desKey;// 密钥
	@Column(name = "Des_Key" )
	public String getDesKey() {
		return desKey;
	}

	public void setDesKey(String desKey) {
		this.desKey = desKey;
	}
	
	public Leavebmoney() {
		super();
	}

	public Leavebmoney(Integer did, String staffint, String stafftype,
			String stafftypes, Integer outforworkint, String staffmoney,
			Double leavebint, Double leavebsick, Double leavebthing,
			Double moneyscale, String amountdou, String amountsick,
			String amountthing, String datemoney) {
		super();
		this.did = did;
		this.staffint = staffint;
		this.stafftype = stafftype;
		this.stafftypes = stafftypes;
		this.outforworkint = outforworkint;
		this.staffmoney = staffmoney;
		this.leavebint = leavebint;
		this.leavebsick = leavebsick;
		this.leavebthing = leavebthing;
		this.moneyscale = moneyscale;
		this.amountdou = amountdou;
		this.amountsick = amountsick;
		this.amountthing = amountthing;
		this.datemoney = datemoney;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="instance_sequence")
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	@Column(name = "staffint")
	public String getStaffint() {
		return staffint;
	}
	public void setStaffint(String staffint) {
		this.staffint = staffint;
	}
	@Column(name = "stafftype")
	public String getStafftype() {
		return stafftype;
	}
	public void setStafftype(String stafftype) {
		this.stafftype = stafftype;
	}
	@Column(name = "stafftypes")
	public String getStafftypes() {
		return stafftypes;
	}
	public void setStafftypes(String stafftypes) {
		this.stafftypes = stafftypes;
	}
	@Column(name = "outforworkint")
	public Integer getOutforworkint() {
		return outforworkint;
	}
	public void setOutforworkint(Integer outforworkint) {
		this.outforworkint = outforworkint;
	}
	@Column(name = "staffmoney")
	public String getStaffmoney() {
		return staffmoney;
	}
	public void setStaffmoney(String staffmoney) {
		this.staffmoney = staffmoney;
	}
	@Column(name = "leavebint")
	public Double getLeavebint() {
		return leavebint;
	}
	public void setLeavebint(Double leavebint) {
		this.leavebint = leavebint;
	}
	
	
	@Column(name = "leavebsick")
	public Double getLeavebsick() {
		return leavebsick;
	}

	public void setLeavebsick(Double leavebsick) {
		this.leavebsick = leavebsick;
	}
	@Column(name = "leavebthing")
	public Double getLeavebthing() {
		return leavebthing;
	}

	public void setLeavebthing(Double leavebthing) {
		this.leavebthing = leavebthing;
	}

	/*@Column(name = "typeint")
	public Integer getTypeint() {
		return typeint;
	}
	public void setTypeint(Integer typeint) {
		this.typeint = typeint;
	}*/
	@Column(name = "moneyscale")
	public Double getMoneyscale() {
		return moneyscale;
	}
	public void setMoneyscale(Double moneyscale) {
		this.moneyscale = moneyscale;
	}
	@Column(name = "amountdou")
	public String getAmountdou() {
		return amountdou;
	}
	public void setAmountdou(String amountdou) {
		this.amountdou = amountdou;
	}
	@Column(name = "datemoney")
	public String getDatemoney() {
		return datemoney;
	}
	public void setDatemoney(String datemoney) {
		this.datemoney = datemoney;
	}
	@Column(name = "amountsick")
	public String getAmountsick() {
		return amountsick;
	}

	public void setAmountsick(String amountsick) {
		this.amountsick = amountsick;
	}

	@Column(name = "amountthing")
	public String getAmountthing() {
		return amountthing;
	}

	public void setAmountthing(String amountthing) {
		this.amountthing = amountthing;
	}



}
